This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: java https ~Nita Desgeroburings 27.May.03 11:40 PM a Web browser Applications Development 6.0All Platforms
I fixed my security exception errors using the following java code:
URL myurl = new URL(MYURL);
BufferedReader in;
// we will use ssl (https) if we can
if (MYURL.startsWith("https") ){
com.sun.net.ssl.HttpsURLConnection myConnection = (com.sun.net.ssl.HttpsURLConnection myurl.openConnection();
in = new BufferedReader(new InputStreamReader(myConnection.getInputStream()));
} else { // otherwise, this is regular http
java.net.URLConnection myConnection = myurl.openConnection();
in = new BufferedReader(new InputStreamReader(myConnection.getInputStream()));
} // end else